package com.ibeeking.found.msg.service.common.vo;

import com.ibeeking.found.msg.service.common.query.WxMpFansPageQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName WxMpGroupMessageParam
 * @Description
 * @Author ibeeking
 * @Date 2020-12-25 11:20
 **/
@Data
@Accessors(chain = true)
public class WxMpGroupMessageUploadVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;

	/**
	 * 关联微信公众号id
	 */
	private String appId;

	/**
	 * 全部用户发送
	 */
	private Integer allSend;

	/**
	 * 发送方式
	 */
	private String sendType;

	//private List<String> tagIds = new ArrayList<>();

	//private FansObject userObject = new FansObject();

	private Message message = new Message();

	/**
	 * 当系统判断为转载是否还转发
	 */
	private Integer sendIgnoreReprintl = 1;

	@Data
	public static class FansObject {

		private List<String> fansIds = new ArrayList<>();

		private WxMpFansPageQuery fansPageQuery = new WxMpFansPageQuery();

	}

	@Data
	public static class Message{

		private String sourceType;

		private String unionKey;

		private List sourceDetails = new ArrayList();

		private String repUrl;

		private String repName;

		private String appId;

	}

	private String remark;


}
